package com.ims.business.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ims.common.annotation.DictTag;
import com.ims.common.matatype.impl.BaseModel;
import java.io.Serializable;

/**
 * <p>
 * 订单
 * </p>
 *
 * @author 陈骑元
 * @since 2019-07-10
 */
@TableName("t_order")
public class Order extends BaseModel<Order> {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
    @TableId("order_id")
    private String orderId;
    
    /**
     * 微信openid
     */
    private String openid;
   

	/**
     * 订单类型 1洗车订单2审车订单
     */
    @TableField("order_type")
    private String orderType;
    /**
     * 订单创建时间
     */
    @TableField("order_time")
    private Date orderTime;
    /**
     * 订单金额
     */
    @TableField("order_amount")
    private Double orderAmount;
    /**
     * 是否支付0否1是
     */
    @DictTag(type="whether_type")
    @TableField("whether_pay")
    private String whetherPay;
    /**
     * 支付时间
     */
    @TableField("pay_time")
    private Date payTime;
    /**
     * 开卡类型
     */
    @DictTag(type="card_type")
    @TableField("card_type")
    private String cardType;
    /**
     * 手机号
     */
    private String mobile;
    /**
     * 小区名称
     */
    @TableField("area_name")
    private String areaName;
    /**
     * 详细地址
     */
    @TableField("detail_address")
    private String detailAddress;
    /**
     * 车牌号
     */
    @TableField("car_num")
    private String carNum;
    /**
     * 型号
     */
    @TableField("car_model")
    private String carModel;
    /**
     * 颜色
     */
    @TableField("car_color")
    private String carColor;
    /**
     * 方便洗车时间
     */
    @TableField("wash_time")
    private String washTime;
    /**
     * 姓名
     */
    private String username;
    /**
     * 备注
     */
    private String remark;
    /**
     * 卡到期时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    @TableField("expire_time")
    private Date expireTime;
    /**
     * 车辆年限 1：6年以内 2:6年以上
     */
    @DictTag(type="car_limit")
    @TableField("car_limit")
    private String carLimit;
    /**
     * 接车人
     */
    @TableField("car_owner")
    private String carOwner;


    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Double getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(Double orderAmount) {
        this.orderAmount = orderAmount;
    }

    public String getWhetherPay() {
        return whetherPay;
    }

    public void setWhetherPay(String whetherPay) {
        this.whetherPay = whetherPay;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(String detailAddress) {
        this.detailAddress = detailAddress;
    }

    public String getCarNum() {
        return carNum;
    }

    public void setCarNum(String carNum) {
        this.carNum = carNum;
    }

    public String getCarModel() {
        return carModel;
    }

    public void setCarModel(String carModel) {
        this.carModel = carModel;
    }

    public String getCarColor() {
        return carColor;
    }

    public void setCarColor(String carColor) {
        this.carColor = carColor;
    }

    public String getWashTime() {
        return washTime;
    }

    public void setWashTime(String washTime) {
        this.washTime = washTime;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public String getCarLimit() {
        return carLimit;
    }

    public void setCarLimit(String carLimit) {
        this.carLimit = carLimit;
    }

    public String getCarOwner() {
        return carOwner;
    }

    public void setCarOwner(String carOwner) {
        this.carOwner = carOwner;
    }
    public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

    @Override
    protected Serializable pkVal() {
        return this.orderId;
    }
 
    @Override
    public String toString() {
        return "Order{" +
        "orderId=" + orderId +
        ", openid=" + openid +
        ", orderType=" + orderType +
        ", orderTime=" + orderTime +
        ", orderAmount=" + orderAmount +
        ", whetherPay=" + whetherPay +
        ", payTime=" + payTime +
        ", cardType=" + cardType +
        ", mobile=" + mobile +
        ", areaName=" + areaName +
        ", detailAddress=" + detailAddress +
        ", carNum=" + carNum +
        ", carModel=" + carModel +
        ", carColor=" + carColor +
        ", washTime=" + washTime +
        ", username=" + username +
        ", remark=" + remark +
        ", expireTime=" + expireTime +
        ", carLimit=" + carLimit +
        ", carOwner=" + carOwner +
        "}";
    }
}
